package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.LogisticInfoMapper;
import com.ruoyi.order.domain.LogisticInfo;
import com.ruoyi.order.service.ILogisticInfoService;

/**
 * 当前物流信息管理Service业务层处理
 * 
 * @author lzp
 * @date 2025-02-10
 */
@Service
public class LogisticInfoServiceImpl implements ILogisticInfoService 
{
    @Autowired
    private LogisticInfoMapper logisticInfoMapper;

    /**
     * 查询当前物流信息管理
     * 
     * @param logisticId 当前物流信息管理主键
     * @return 当前物流信息管理
     */
    @Override
    public LogisticInfo selectLogisticInfoByLogisticId(Long logisticId)
    {
        return logisticInfoMapper.selectLogisticInfoByLogisticId(logisticId);
    }


    @Override
    public LogisticInfo selectLogisticInfoByDeliveryOrderNo(String deliveryOrderNo)
    {
        return logisticInfoMapper.selectLogisticInfoByDeliveryOrderNo(deliveryOrderNo);
    }
    /**
     * 查询当前物流信息管理列表
     * 
     * @param logisticInfo 当前物流信息管理
     * @return 当前物流信息管理
     */
    @Override
    public List<LogisticInfo> selectLogisticInfoList(LogisticInfo logisticInfo)
    {
        return logisticInfoMapper.selectLogisticInfoList(logisticInfo);
    }

    /**
     * 新增当前物流信息管理
     * 
     * @param logisticInfo 当前物流信息管理
     * @return 结果
     */
    @Override
    public int insertLogisticInfo(LogisticInfo logisticInfo)
    {
        return logisticInfoMapper.insertLogisticInfo(logisticInfo);
    }

    /**
     * 修改当前物流信息管理
     * 
     * @param logisticInfo 当前物流信息管理
     * @return 结果
     */
    @Override
    public int updateLogisticInfo(LogisticInfo logisticInfo)
    {
        return logisticInfoMapper.updateLogisticInfo(logisticInfo);
    }

    /**
     * 批量删除当前物流信息管理
     * 
     * @param logisticIds 需要删除的当前物流信息管理主键
     * @return 结果
     */
    @Override
    public int deleteLogisticInfoByLogisticIds(Long[] logisticIds)
    {
        return logisticInfoMapper.deleteLogisticInfoByLogisticIds(logisticIds);
    }

    /**
     * 删除当前物流信息管理信息
     * 
     * @param logisticId 当前物流信息管理主键
     * @return 结果
     */
    @Override
    public int deleteLogisticInfoByLogisticId(Long logisticId)
    {
        return logisticInfoMapper.deleteLogisticInfoByLogisticId(logisticId);
    }
}
